package com.hl.card.common.persistence.model;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;

import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author huangpu
 * @since 2018-06-05
 */
@TableName("sales_division")
public class SalesDivision extends Model<SalesDivision> {

    private static final long serialVersionUID = 1L;

	@TableId(value="id", type= IdType.AUTO)
	private Integer id;
    /**
     * 计算方式(0,按交易额计算，1,按类型定拨)
     */
	@TableField("calculation_type")
	private Integer calculationType;
    /**
     * 产品类型
     */
	private String goodsName;
    /**
     * 利润比例
     */
	@TableField("profit_ratio")
	private Integer profitRatio;
    /**
     * 定拨金额
     */
	@TableField("fixed_amount")
	private Integer fixedAmount;
    /**
     * 备注
     */
	private String remarks;

	private String jisuanfangshi;

	private String code_name;

	public String getCode_name() {
		return code_name;
	}

	public void setCode_name(String code_name) {
		this.code_name = code_name;
	}

	/**
	 * 产品代码
	 */
	@TableField("goods_code")
	private String goodsCode;

	public String getGoodsCode() {
		return goodsCode;
	}

	public void setGoodsCode(String goodsCode) {
		this.goodsCode = goodsCode;
	}

	public String getJisuanfangshi() {
		return jisuanfangshi;
	}

	public void setJisuanfangshi(String jisuanfangshi) {
		this.jisuanfangshi = jisuanfangshi;
	}

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public Integer getCalculationType() {
		return calculationType;
	}

	public void setCalculationType(Integer calculationType) {
		this.calculationType = calculationType;
	}

	public String getGoodsName() {
		return goodsName;
	}

	public void setGoodsName(String goodsName) {
		this.goodsName = goodsName;
	}

	public Integer getProfitRatio() {
		return profitRatio;
	}

	public void setProfitRatio(Integer profitRatio) {
		this.profitRatio = profitRatio;
	}

	public Integer getFixedAmount() {
		return fixedAmount;
	}

	public void setFixedAmount(Integer fixedAmount) {
		this.fixedAmount = fixedAmount;
	}

	public String getRemarks() {
		return remarks;
	}

	public void setRemarks(String remarks) {
		this.remarks = remarks;
	}

	@Override
	protected Serializable pkVal() {
		return this.id;
	}

	@Override
	public String toString() {
		return "SalesDivision{" +
			"id=" + id +
			", calculationType=" + calculationType +
			", goodsName=" + goodsName +
			", profitRatio=" + profitRatio +
			", fixedAmount=" + fixedAmount +
			", remarks=" + remarks +
			"}";
	}
}
